﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(BusinessMetadata))]//使用BusinessMetadata对Business进行数据验证
    public partial class Business : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        [Display(Name = "DepartmentGuid")]
        public string DepartmentGuidOld { get; set; }
        
        #endregion

    }
    public class BusinessMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "RowGuid", Order = 1)]
			public object RowGuid { get; set; }

			[ScaffoldColumn(true)]
            [Display(Name = "业务名称", Order = 2)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object Name { get; set; }

			[ScaffoldColumn(true)]
            [Display(Name = "业务所属单位", Order = 3)]
			[StringLength(36, ErrorMessage = "长度不可超过36")]
			public object DepartmentGuid { get; set; }

			[ScaffoldColumn(true)]
            [Display(Name = "业务详述", Order = 4)]
			[StringLength(4000, ErrorMessage = "长度不可超过4000")]
			public object Describe { get; set; }

			[ScaffoldColumn(true)]
            [Display(Name = "办理业务所需材料", Order = 5)]
			[StringLength(4000, ErrorMessage = "长度不可超过4000")]
			public object CaiLiao { get; set; }


    }


}

